package cn.com.headfree.call;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.com.headfree.base.controller.ResultData;
import cn.com.headfree.vo.file.DealFileVo;

@FeignClient(url = "${decisionEngine.url}",name="engine")
@Service("humanManageCommonFileServerCall")
public interface IHumanManageCommonFileServerCall {
	
//	@PostMapping(value = "/human-manage/commonFileDeal/upload",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
//	public ResultData upload(@RequestPart(value="file") MultipartFile file);
	
//	@PostMapping(value = "/human-manage/commonFileDeal/downloadFile")
//	public void downloadFile(@RequestParam("fileId") String fileId);

	@RequestMapping(value = "/human-manage/commonFileDeal/findFileList")
	@ResponseBody
	public ResultData findFileList(@RequestParam("sysCode") String sysCode,@RequestParam("businessId") String businessId,@RequestParam("businessNode") String businessNode);

	@RequestMapping(value = "/human-manage/commonFileDeal/deleteFile")
	@ResponseBody
	public ResultData deleteFile(@RequestParam("fileId") String fileId);

	@RequestMapping(value = "/human-manage/commonFileDeal/getFilesByBusinessId")
	@ResponseBody
	public ResultData getFilesByBusinessId(@RequestParam("businessId") String businessId);
	
}